import Vue from "vue";
import VueI18n from "vue-i18n";
Vue.use(VueI18n);
import enLocale from "./lib/en";
import zhLocale from "./lib/zh";
import elementEnLocale from "element-ui/lib/locale/lang/en";
import elementZhLocale from "element-ui/lib/locale/lang/zh-CN";
import Cookie from "js-cookie";
let i18n = new VueI18n({
  // locale: "zh",
  locale: Cookie.get("language"),
  messages: {
    zh: { ...zhLocale, ...elementZhLocale },
    en: { ...enLocale, ...elementEnLocale },
  },
});
export default i18n;
